import request from '@/utils/request'

// 创建意向学员
export function createCourseIntentionStudentInfo(data) {
  return request({
    url: '/student/course-intention-student-info/create',
    method: 'post',
    data: data
  })
}

// 更新意向学员
export function updateCourseIntentionStudentInfo(data) {
  return request({
    url: '/student/course-intention-student-info/update',
    method: 'put',
    data: data
  })
}

// 删除意向学员
export function deleteCourseIntentionStudentInfo(id) {
  return request({
    url: '/student/course-intention-student-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得意向学员
export function getCourseIntentionStudentInfo(id) {
  return request({
    url: '/student/course-intention-student-info/get?id=' + id,
    method: 'get'
  })
}

// 获得意向学员分页
export function getCourseIntentionStudentInfoPage(query) {
  return request({
    url: '/student/course-intention-student-info/page',
    method: 'get',
    params: query
  })
}

// 导出意向学员 Excel
export function exportCourseIntentionStudentInfoExcel(query) {
  return request({
    url: '/student/course-intention-student-info/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
